package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.iflytek.common.Result;
import com.iflytek.dto.OrderGoodsDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.model.OrderGoods;
import com.iflytek.vo.OrderGoodsVO;
import com.iflytek.vo.PageVO;

import java.util.List;

/**
 * <p>
 * 订单商品关系表 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface OrderGoodsService extends IService<OrderGoods>   {


    Result<List<OrderGoodsVO>> findAll();

    Result<Boolean> saveOrderGoods(OrderGoodsDTO orderGoodsDTO);

    Result<Boolean> updateOrderGoods(OrderGoodsDTO orderGoodsDTO);

    Result<PageVO<OrderGoodsVO>> findPage(PageDTO pageDTO);

    Result<OrderGoodsVO> findById(Integer id);

    Result<Boolean> delete(Integer id);
}